package com.beamfield.dao.sys;

import com.beamfield.model.Btn;
import com.beamfield.modelVo.BtnVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface BtnMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Btn record);

    int insertSelective(Btn record);

    Btn selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Btn record);

    int updateByPrimaryKey(Btn record);

    List<BtnVo> selectByRoleIdAndModelId(@Param("roleId") String roleId,@Param("modelId") String modelId);

    long selectByBtnPageIdAndModelId(@Param("btnPageId") String btnPageId,@Param("modelId") Integer modelId);
}